module("NetWork.Action.LoadGroupTableAction ", package.seeall)

local NetCmdActionBase = require("NetWork.Action").NetCmdActionBase

LoadGroupTableAction = NetCmdActionBase:new()

function LoadGroupTableAction:Action(bytes)
    local LoadGroupTableSm = require("Protol.groupMessage_pb").LoadGroupTableSm()
    LoadGroupTableSm:ParseFromString(bytes)
    if LoadGroupTableSm.code ~= 0 then
        local UIWinMgr = require("UI.UIWinMgr").UIWinMgr
        local NewGameLoobyWin = UIWinMgr:GetWindow("NewGameLoobyWin")
        if NewGameLoobyWin then
            NewGameLoobyWin:HideAllTabels()
            Debug.log("----------HideAllTabels--------------")
        end
        return
    end
    Debug.log("----------HideAllTabels-----111---------")
    local ClubModule = require("Module.ClubModule").ClubModule
    ClubModule.LoadGroupTableSm(LoadGroupTableSm)
end

require("NetWork.NetCmdSet").CmdSet[2015] = LoadGroupTableAction --注册处理对象